/**
 * 
 */
package org.tangram.component.xml;

import org.simpleframework.xml.Attribute;
import org.tangram.component.Component;
import org.tangram.component.ExtensionPoint;

/**
 * @author han_feng
 * 
 */
public class ExtensionPointDefintion implements ExtensionPoint {

	@Attribute
	private String id;

	private Component ownerComponent;

	@Attribute(required = false)
	private String configClass = "org.tangram.component.base.DefaultExtensionConfig";

	@Attribute(required = false)
	private String configSchemaLocation;

	public ExtensionPointDefintion(@Attribute(name = "id") String id) {
		this.id = id;
	}

	public String getConfigClass() {
		return configClass;
	}

	public String getId() {
		return id;
	}

	public Component getOwnerComponent() {
		return ownerComponent;
	}

	public String getConfigSchemaLocation() {
		return configSchemaLocation;
	}

	public void setConfigClass(String configClass) {
		this.configClass = configClass;
	}

	public void setOwnerComponent(Component ownerComponent) {
		this.ownerComponent = ownerComponent;
	}

	public void setConfigSchemaLocation(String configSchemaLocation) {
		this.configSchemaLocation = configSchemaLocation;
	}

}
